package com.haven.webrobotserver.service.impl;

import com.haven.webrobotserver.dao.mybatis.mapper.ProjectMapper;
import com.haven.webrobotserver.domain.Project;
import com.haven.webrobotserver.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {

    @Autowired(required = false)
    private ProjectMapper projectMapper;

    @Override
    public List<Project> getAllprojects() {
        List<Project> allProjects = projectMapper.getAllProjects();
        return allProjects;
    }

}
